package web.suzy.oj.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * YangSuzy 软件工作室
 * 类名: DataSourceConfig
 * 描述: 评测机数据库属性配置类
 * 功能: ---- 待定 -----
 *
 * @author YangSuzy
 * Date: 2022/11/8 18:25
 */
@RefreshScope //配置实例热加载
@ConfigurationProperties(prefix = "suzyoj.db") //获取配置文件中的属性
@Data
@Component
public class DataSourceConfig {
    private String username;

    private String password;

    private String host;

    private Integer port;

    private String name;
}
